package cn.source.zk.mapper;

import cn.source.zk.domain.entity.Cxdz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ZkCxdzMapper {

    /**
     * 获取cxdz列表
     * @param cxdz
     */
    List<Cxdz> getList(Cxdz cxdz);

    /**
     * 新增cxdz
     * @param cxdz
     * @return
     */
    int add(Cxdz cxdz);

    /**
     * 编辑cxdz
     * @param cxdz
     * @return
     */
    int edit(Cxdz cxdz);

    /**
     * 批量删除
     * @param tdGuids
     * @return
     */
    int removeBatch(@Param("tdGuids") List<String> tdGuids);

    /**
     * 根据num获取cxdz
     * @param num
     * @return
     */
    Cxdz getCxdzByNum(Long num);

    /**
     * 重置cxdz
     * @param cxdz
     * @return
     */
    int refreshCxdz(Cxdz cxdz);
}
